package Proxy;

public class CLocalPicShow implements IShowPic,Runnable{
    private IShowPic pic;
    private String picname;
    @Override
    public void showPic(String picname) {
        pic = new CRemoPic();
        this.picname = picname;
        System.out.println("准备载入图片" + picname);
        Thread th = new Thread(this);
        th.start();

    }

    @Override
    public void run() {
        //远程调用
        pic.showPic(picname);
        System.out.println(picname + "图片载入完成！");

    }
}
